<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
	<div class="wrapper wrapper-content ">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-content">
						<form class="form-horizontal m-t" id="signupForm">
							<input type="hidden" th:value="${cameraInfo.id}" id="id" name="id"/>
							<div class="form-group">	
								<label class="col-sm-3 control-label">相机名称：</label>
								<div class="col-sm-8">
									<input th:value="${cameraInfo.cameraName}" id="cameraName" name="cameraName" class="form-control" type="text">
								</div>
							</div>
								<div class="form-group">
								<label class="col-sm-3 control-label">所属小区：</label>
								<div class="col-sm-8">
									<div class="col-sm-10" style="float:left;margin-left:-15px">
										<input th:value="${cameraInfo.communityName}" id="communityName" placeholder="请选择小区" readonly  name="communityName" class="form-control" type="text">
									</div>
									<div class="col-sm-2" style="margin-left:-15px">
										<button  type="button" class="btn  btn-primary" onclick="choose()">
											<input type="hidden" id="communityId" name="communityId" th:value="${cameraInfo.communityId}">
											<input type="hidden" id="type" name="type" value="1"/>
											<i class="fa fa-neuter" aria-hidden="true"></i>选择小区
										</button>
									</div>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">相机位置：</label>
								<div class="col-sm-8">
									<input th:value="${cameraInfo.location}" id="location" name="location" class="form-control" type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">相机方向：</label>
								<div class="col-sm-8">
									<label class="radio-inline">
										<input th:field="*{cameraInfo.direction}" type="radio" name="direction" value="1" checked /> 进
									</label>
									<label class="radio-inline">
										<input th:field="*{cameraInfo.direction}" type="radio" name="direction" value="2" /> 出
									</label>
								</div>

							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">相机IP：</label>
								<div class="col-sm-8">
									<input th:value="${cameraInfo.cameraIp}" id="cameraIp" name="cameraIp" class="form-control" type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">相机品牌：</label>
								<div class="col-sm-8">
									<label class="radio-inline">
										<input th:field="*{cameraInfo.brand}" type="radio" name="brand" value="1" checked /> 华夏
									</label>
									<label class="radio-inline">
										<input th:field="*{cameraInfo.brand}" type="radio" name="brand" value="2" /> 中实
									</label>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">型号：</label>
								<div class="col-sm-8">
									<input th:value="${cameraInfo.model}" id="model" name="model" class="form-control" type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">屏幕品牌：</label>
								<div class="col-sm-8">
									<label class="radio-inline">
										<input th:field="*{cameraInfo.screenBrand}" type="radio" name="screenBrand" value="2" checked /> 红门
									</label>
									<label class="radio-inline">
										<input th:field="*{cameraInfo.screenBrand}" type="radio" name="brand" value="1" /> 方控
									</label>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">配套屏幕IP：</label>
								<div class="col-sm-8">
									<input th:value="${cameraInfo.screenIp}" id="screenIp" name="screenIp" class="form-control" type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">屏幕显示行数：</label>
								<div class="col-sm-8">
									<input th:value="${cameraInfo.screenLineNum}" id="screenLineNum" name="screenLineNum" class="form-control" type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">相机视频流：</label>
								<div class="col-sm-8">
									<input id="rtmpUrl" th:value="${cameraInfo.rtmpUrl}" name="rtmpUrl" maxlength="250" class="form-control" type="text">
								</div>
							</div>
							<div class="form-group">
								<div class="col-sm-8 col-sm-offset-3">
									<button type="submit" class="btn btn-primary">提交</button>
								</div>
							</div>

							<input type="hidden" id="status" name="status" value="0"/>
						</form>
					</div>
				</div>
			</div>
	</div>
	</div>
	<div th:include="include::footer"></div>
	<script type="text/javascript" src="/js/appjs/camera/edit.js">
	</script>
</body>
</html>
